package xyz.zhouzhaodong.crm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import xyz.zhouzhaodong.crm.dto.BusinessIncomeDto;
import xyz.zhouzhaodong.crm.dto.FormDto;
import xyz.zhouzhaodong.crm.entity.BusinessIncome;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 营业收入 Mapper 接口
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-07-03
 */
public interface BusinessIncomeMapper extends BaseMapper<BusinessIncome> {

    /**
     * 分页查询
     * @param page
     * @param businessIncomeDto
     * @return
     */
    IPage<BusinessIncome> selectBusinessIncomeList(Page<BusinessIncome> page,
                                                   @Param("businessIncomeDto") BusinessIncomeDto businessIncomeDto);

    /**
     * 汇总显示
     * @param formDto
     * @return
     */
    List<FormDto> selectCustomerForm(@Param("formDto") FormDto formDto);

}
